home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98c.txt / 000014_icon-group-sender _Fri Sep 11 13:08:04 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) with SMTP id NAA07434
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Fri, 11 Sep 1998 13:08:04 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA31390; Fri, 11 Sep 1998 13:07:37 -0700
  7. Message-Id: <4FD6422BE942D111908D00805F3158DF0757B57D@RED-MSG-52>
  8. From: Todd Proebsting <toddpro@microsoft.com>
  9. To: "'cwills@bix.com'" <cwills@bix.com>, icon-group@optima.CS.Arizona.EDU
  10. Subject: RE: Context Switching
  11. Date: Fri, 11 Sep 1998 08:34:35 -0700
  12. X-Mailer: Internet Mail Service (5.5.2232.9)
  13. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  14. Status: RO
  15.  
  16. Jcon (http://www.cs.arizona.edu/icon/jcon/) builds Icon co-expressions on
  17. top of Java's thread model.  Just about any thread package would be
  18. sufficient---in fact, it's almost certainly overkill since (as implied
  19. below) exactly one thread is unblocked at any given time.  Using semaphores
  20. it was quite simple.  The requirements below are, indeed, necessary.
  21.  
  22. Todd Proebsting
  23.  
  24. -----Original Message-----
  25. From: cwills@bix.com [mailto:cwills@bix.com]
  26. Sent: Thursday, September 10, 1998 7:06 PM
  27. To: icon-group@optima.CS.Arizona.EDU
  28. Subject: RE: Context Switching
  29.  
  30.  
  31. I believe that if one has access to a thread model, you could probably
  32. implement the coswitch function.  By careful use of semaphors and blocking
  33. one could perform the switch.  Under OS/2 the CSet (or VisualAge C compiler)
  34. one could use the _beginthread facility.
  35.  
  36. The requirements would be:
  37.   1) all memory allocations from the OS have to be accessible from all
  38.      threads
  39.   2) only one thread can be active at a time
  40.   3) any files (or other system objects) have to be shared across all
  41.      threads
  42.  
  43. Cheyenne
  44.